import {
	BehaviorWithStore
}
from 'mobx-miniprogram-bindings'
import useStore from '../../store/index'

export const userBehavior = BehaviorWithStore({
	storeBindings: {
		store: useStore,
		fields: ['userInfo'],
		actions: ['setToken', 'setUserInfo']
	}
})